package com.imooc.bilibili.domain.following;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.imooc.bilibili.domain.user.UserInfo;
import lombok.Data;

import java.util.Date;

/**
 * 用户关注
 *
 * @author gcq
 * @Create 2022-05-24
 */
@Data
@TableName(value = "t_user_following")
public class UserFollowing {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户Id
     */
    @TableField(value = "userId")
    private Long userId;
    /**
     * 关注用户Id
     */
    @TableField(value = "followingId")
    private Long followingId;
    /**
     * 关注分组Id
     */
    @TableField(value = "groupId")
    private Long groupId;
    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 用户信息
     */
    @TableField(exist = false)
    private UserInfo userInfo;
}